using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PickWeapon : Pick<WeaponData>
{

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.F) && isTrigger)
            pick();
    }
    public new void pick()
    {
        StartCoroutine(getWeapon());
        base.pick();
    }

    public IEnumerator getWeapon()
    {
        WeaponsBackpackManager.instance.getWeapon(data);
        yield return null;
    }
}
